import request from '@/utils/request'

// 查询学生代码提交列表
export function listSubmissions(query) {
  return request({
    url: '/system/submissions/list',
    method: 'get',
    params: query
  })
}

// 查询学生代码提交详细
export function getSubmissions(submissionId) {
  return request({
    url: '/system/submissions/' + submissionId,
    method: 'get'
  })
}

// 新增学生代码提交
export function addSubmissions(data) {
  return request({
    url: '/system/submissions',
    method: 'post',
    data: data
  })
}

// 修改学生代码提交
export function updateSubmissions(data) {
  return request({
    url: '/system/submissions',
    method: 'put',
    data: data
  })
}

// 删除学生代码提交
export function delSubmissions(submissionId) {
  return request({
    url: '/system/submissions/' + submissionId,
    method: 'delete'
  })
}
